package Day08_08;

public class UserService extends UserNameException{
    public void register(String username,String password) throws UserNameException {

            if(username.length() < 6 || username.length() > 14){
                throw new UserNameException(" 用户名格式错误，请重新输入！ ");
            }
        System.out.println("注册成功");
        }


    }
